package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.business.domain.DeliveryBillentryPound;
import com.ruoyi.business.mapper.DeliveryBillentryPoundMapper;
import com.ruoyi.business.service.DeliveryBillentryPoundService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 发货物料校核明细Service业务层处理
 *
 * @author JerryLu
 * @date 2024/9/7 14:18
 * @return
 */
@Service
public class DeliveryBillentryPoundServiceImpl extends ServiceImpl<DeliveryBillentryPoundMapper, DeliveryBillentryPound> implements DeliveryBillentryPoundService {
    @Override
    public List<DeliveryBillentryPound> queryList(DeliveryBillentryPound billentryPound) {
        QueryWrapper<DeliveryBillentryPound> queryWrapper = Wrappers.query();
        if (billentryPound.getDeliveryId() > 0) {
            queryWrapper.eq("delivery_id", billentryPound.getDeliveryId());
        }
        return this.list(queryWrapper);
    }
}
